package com.share.thread;

/**
 * @desc: 线程顺序执行，考察join
 * @author:caifan
 * @date:2022/1/19
 */
public class ThreadOrder {

    public static void main(String[] args) throws Exception {
        Thread t1 = new Thread(() -> {
            System.out.println("A");
        });

        Thread t2 = new Thread(() -> {
            System.out.println("AAA");
        });

        t1.start();
        t1.join();
        t2.start();
        t2.join();

    }

}
